package com.neusoft.service;

import java.util.List;

import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import com.neusoft.po.Credit;
import com.neusoft.po.Orders;

public interface CreditService {
	
	//通过订单系统获取积分
	public int ordersAddCredit(Orders order);

	public Double ordersGetDiscount(String userId);
	
	public int ordersUseDiscount(Orders order);
	
	public int getUsableCredit(String userId);
	
	public List<Credit> getCreditTransaction(String userId);
	
	
	
	
	
	
//	public int addCredit(Credit credit);
//	
//	//减少积分,注意在service中应该检查积分是否足够
//	public int minusCredit(Credit credit, Integer minusAmount);
//	
//	//查询可用积分
//	public int getCredit(String userId);
	
	
}
